package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysUserRoleDO;
import com.sunyard.pcc.dal.query.SysUserRoleQuery;

import java.util.List;

/**
 * Manager for SysUserRole.
 */
public interface SysUserRoleManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysUserRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysUserRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysUserRoleDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysUserRoleDO record);

    /**
     * select by query condition.
     */
    List<SysUserRoleDO> selectByQuery(SysUserRoleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysUserRoleDO> selectByQueryWithPage(SysUserRoleQuery query);

    /**
     * select by primary key.
     */
    SysUserRoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysUserRoleDO record,  SysUserRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysUserRoleDO record, SysUserRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysUserRoleDO record);

}